<%@ page language="Java" import="java.util.*,descriptor.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	AcademicSupDescriptor academicSup = (AcademicSupDescriptor)request.getAttribute("academicSup");
	DegreeListDescriptor degreeList = (DegreeListDescriptor)request.getAttribute("listDegrees");
	if(academicSup == null){
		response.sendRedirect("index.html");
	}

%>
<html>
	<jsp:include page="academicSupervisorHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Academic Supervisor" />
	</jsp:include>
	<body OnLoad="showmenu(document.getElementById('smenu2'));">
		<jsp:include page="academicSupervisorPageHeader.jsp"></jsp:include>
		<div id="container">
			<jsp:include page="academicSupMenu.jsp" ></jsp:include>
			<div id="content">
			<h3 class="posttitle">Degree Available</h3>
				<div class="entry">

<table cellpadding="0" cellspacing="10" border="0">
				<%
				for(DegreeDescriptor degree : degreeList.getDegreeList()){
				%>
				<tr>
				<td><%= degree.getName()%></td><td><a href="AcademicSupServlet?page=academicSupervisorViewDegreeFeedback&amp;degreeId=<%=degree.getId()%>">View All Feedback </a></td>
				</tr>
				<%
				}
				%>
</table>
				</div>
	    	</div>
			<jsp:include page="academicSupervisorPageFooter.jsp"></jsp:include>
		</div>
	</body>
</html>